home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 4 / FM Towns Free Software Collection 4 - Disc 1.iso / t_os / border / source / dabe_snd.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-19  |  487 b   |  35 lines

  1. #include <snd.h>
  2. #include "dabe.h"
  3.  
  4. extern    short    soundflag;
  5.  
  6. void    open_sound()
  7. {    
  8.     if( soundflag == ON){    
  9.         SND_key_off( 0 );
  10.         SND_inst_change( 0, 66 );
  11.         SND_key_on( 0, 60, 40 );
  12.     }
  13. }
  14.  
  15. void    error_sound()
  16. {    
  17.     SND_key_off( 3 );
  18.     SND_inst_change( 3, 102 );
  19.     SND_key_on( 3, 60, 100 );
  20. }
  21.  
  22. void    sound_off()
  23. {    
  24.     SND_key_off( 0 );
  25.     SND_key_off( 1 );
  26.     SND_key_off( 2 );
  27.     SND_key_off( 3 );
  28. }
  29.  
  30. void    msg_sound()
  31. {    
  32.     SND_key_off( 3 );
  33.     SND_key_on( 3, 96, 100 );
  34. }
  35.